package com.erp.app.report.genericInquiry.inquiryCriteria.ejb;

import java.math.BigDecimal;

import com.erp.framework.model.pk.SimpleBasePk;

public class InquiryCriteriaPK implements SimpleBasePk
{
	public String inquiryType;
	public BigDecimal lineNo;

	public String getInquiryType() { return inquiryType; }
	public BigDecimal getLineNo() { return lineNo; }

	public InquiryCriteriaPK(String inquiryType, BigDecimal lineNo)
	{
		this.inquiryType = inquiryType;
		this.lineNo = lineNo;
	}

	public int hashCode() {
		return (this.inquiryType+this.lineNo).hashCode();
	}

	public boolean equals(Object obj) {
		if (obj instanceof InquiryCriteriaPK) {
			InquiryCriteriaPK pk2 = (InquiryCriteriaPK) obj;
			return (this.inquiryType != null && this.lineNo != null && this.inquiryType.equals(pk2.inquiryType)&& this.lineNo.equals(pk2.lineNo));			
		}
		return false;
	}

	public String toString() {
		return "{inquiryType = "+this.inquiryType+", lineNo = "+this.lineNo+"}";
	}

}
